<template>
	<view style="background-color: #F6F6F6;height: 100vh;">
	
		<view class="header">
			<!-- 遮罩层 -->
			
			<!-- 企业/店铺信息 -->
			<view class="header-section">
				<!-- 企业/店铺信息 -->
				<view class="store-box">
					<view class="store-info flex flex-ac-c">
		
						<view class="info-box">
							<view class="store-name">
								<text class="text">{{ store.storeName }}</text>
							</view>
							<!-- <view class="com-name">{{ store.companyName }}</view> -->
						</view>
					</view>
				</view>
			</view>
		
			<view class="card" v-for="(item,index) in history" :key='index' @click="goPage('')">
				<view style="margin-top: 20rpx;">
					<view class="time">{{returnTime(item.time)}}</view>
						<view class="flex flex-jc-sa" style="margin-top: 27rpx;">
							<view style="text-align: center;">
								<view class="price">{{item.money}}</view>
								<view class="profit">今日收益</view>
							</view>
							<view class="line"></view>
							<view style="text-align: center;">
								<view class="price">{{item.monthhe}}</view>
								<view class="profit">本月收益</view>
							</view>
						</view>
					</view>
				</view>
				<defaultImg :show='history.length===0' msg='暂无历史日报'></defaultImg>
				<u-loadmore :status="loadStatus" @loadmore="clickLoadMore" v-show="history.length!==0"/>
				
		</view>
	</view>
</template>

<script src='./historyDaily.js'></script>

<style lang="scss" scoped>
	@import './historyDaily.scss';
</style>
